le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x, 0) → x
minus(0, s(y)) → 0
minus(s(x), s(y)) → minus(x, y)
plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
mod(s(x), 0) → 0
mod(x, s(y)) → help(x, s(y), 0)
help(x, s(y), c) → if(le(c, x), x, s(y), c)
if(true, x, s(y), c) → help(x, s(y), plus(c, s(y)))
if(false, x, s(y), c) → minus(x, minus(c, s(y)))
↳ QTRS
↳ Overlay + Local Confluence
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x, 0) → x
minus(0, s(y)) → 0
minus(s(x), s(y)) → minus(x, y)
plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
mod(s(x), 0) → 0
mod(x, s(y)) → help(x, s(y), 0)
help(x, s(y), c) → if(le(c, x), x, s(y), c)
if(true, x, s(y), c) → help(x, s(y), plus(c, s(y)))
if(false, x, s(y), c) → minus(x, minus(c, s(y)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x, 0) → x
minus(0, s(y)) → 0
minus(s(x), s(y)) → minus(x, y)
plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
mod(s(x), 0) → 0
mod(x, s(y)) → help(x, s(y), 0)
help(x, s(y), c) → if(le(c, x), x, s(y), c)
if(true, x, s(y), c) → help(x, s(y), plus(c, s(y)))
if(false, x, s(y), c) → minus(x, minus(c, s(y)))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
IF(true, x, s(y), c) → HELP(x, s(y), plus(c, s(y)))
IF(false, x, s(y), c) → MINUS(c, s(y))
IF(false, x, s(y), c) → MINUS(x, minus(c, s(y)))
MINUS(s(x), s(y)) → MINUS(x, y)
IF(true, x, s(y), c) → PLUS(c, s(y))
HELP(x, s(y), c) → IF(le(c, x), x, s(y), c)
MOD(x, s(y)) → HELP(x, s(y), 0)
PLUS(x, s(y)) → PLUS(x, y)
HELP(x, s(y), c) → LE(c, x)
LE(s(x), s(y)) → LE(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x, 0) → x
minus(0, s(y)) → 0
minus(s(x), s(y)) → minus(x, y)
plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
mod(s(x), 0) → 0
mod(x, s(y)) → help(x, s(y), 0)
help(x, s(y), c) → if(le(c, x), x, s(y), c)
if(true, x, s(y), c) → help(x, s(y), plus(c, s(y)))
if(false, x, s(y), c) → minus(x, minus(c, s(y)))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
IF(true, x, s(y), c) → HELP(x, s(y), plus(c, s(y)))
IF(false, x, s(y), c) → MINUS(c, s(y))
IF(false, x, s(y), c) → MINUS(x, minus(c, s(y)))
MINUS(s(x), s(y)) → MINUS(x, y)
IF(true, x, s(y), c) → PLUS(c, s(y))
HELP(x, s(y), c) → IF(le(c, x), x, s(y), c)
MOD(x, s(y)) → HELP(x, s(y), 0)
PLUS(x, s(y)) → PLUS(x, y)
HELP(x, s(y), c) → LE(c, x)
LE(s(x), s(y)) → LE(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x, 0) → x
minus(0, s(y)) → 0
minus(s(x), s(y)) → minus(x, y)
plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
mod(s(x), 0) → 0
mod(x, s(y)) → help(x, s(y), 0)
help(x, s(y), c) → if(le(c, x), x, s(y), c)
if(true, x, s(y), c) → help(x, s(y), plus(c, s(y)))
if(false, x, s(y), c) → minus(x, minus(c, s(y)))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
PLUS(x, s(y)) → PLUS(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x, 0) → x
minus(0, s(y)) → 0
minus(s(x), s(y)) → minus(x, y)
plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
mod(s(x), 0) → 0
mod(x, s(y)) → help(x, s(y), 0)
help(x, s(y), c) → if(le(c, x), x, s(y), c)
if(true, x, s(y), c) → help(x, s(y), plus(c, s(y)))
if(false, x, s(y), c) → minus(x, minus(c, s(y)))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
PLUS(x, s(y)) → PLUS(x, y)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
PLUS(x, s(y)) → PLUS(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
MINUS(s(x), s(y)) → MINUS(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x, 0) → x
minus(0, s(y)) → 0
minus(s(x), s(y)) → minus(x, y)
plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
mod(s(x), 0) → 0
mod(x, s(y)) → help(x, s(y), 0)
help(x, s(y), c) → if(le(c, x), x, s(y), c)
if(true, x, s(y), c) → help(x, s(y), plus(c, s(y)))
if(false, x, s(y), c) → minus(x, minus(c, s(y)))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
MINUS(s(x), s(y)) → MINUS(x, y)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
MINUS(s(x), s(y)) → MINUS(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
LE(s(x), s(y)) → LE(x, y)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x, 0) → x
minus(0, s(y)) → 0
minus(s(x), s(y)) → minus(x, y)
plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
mod(s(x), 0) → 0
mod(x, s(y)) → help(x, s(y), 0)
help(x, s(y), c) → if(le(c, x), x, s(y), c)
if(true, x, s(y), c) → help(x, s(y), plus(c, s(y)))
if(false, x, s(y), c) → minus(x, minus(c, s(y)))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
LE(s(x), s(y)) → LE(x, y)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
LE(s(x), s(y)) → LE(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
IF(true, x, s(y), c) → HELP(x, s(y), plus(c, s(y)))
HELP(x, s(y), c) → IF(le(c, x), x, s(y), c)
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
minus(x, 0) → x
minus(0, s(y)) → 0
minus(s(x), s(y)) → minus(x, y)
plus(x, 0) → x
plus(x, s(y)) → s(plus(x, y))
mod(s(x), 0) → 0
mod(x, s(y)) → help(x, s(y), 0)
help(x, s(y), c) → if(le(c, x), x, s(y), c)
if(true, x, s(y), c) → help(x, s(y), plus(c, s(y)))
if(false, x, s(y), c) → minus(x, minus(c, s(y)))
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
IF(true, x, s(y), c) → HELP(x, s(y), plus(c, s(y)))
HELP(x, s(y), c) → IF(le(c, x), x, s(y), c)
plus(x, s(y)) → s(plus(x, y))
plus(x, 0) → x
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
minus(x0, 0)
minus(0, s(x0))
minus(s(x0), s(x1))
mod(s(x0), 0)
mod(x0, s(x1))
help(x0, s(x1), x2)
if(true, x0, s(x1), x2)
if(false, x0, s(x1), x2)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Rewriting
IF(true, x, s(y), c) → HELP(x, s(y), plus(c, s(y)))
HELP(x, s(y), c) → IF(le(c, x), x, s(y), c)
plus(x, s(y)) → s(plus(x, y))
plus(x, 0) → x
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
IF(true, x, s(y), c) → HELP(x, s(y), s(plus(c, y)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Rewriting
↳ QDP
↳ NonInfProof
HELP(x, s(y), c) → IF(le(c, x), x, s(y), c)
IF(true, x, s(y), c) → HELP(x, s(y), s(plus(c, y)))
plus(x, s(y)) → s(plus(x, y))
plus(x, 0) → x
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))
(1) (HELP(x3, s(x4), s(plus(x5, x4)))=HELP(x6, s(x7), x8) ⇒ HELP(x6, s(x7), x8)≥IF(le(x8, x6), x6, s(x7), x8))
(2) (HELP(x3, s(x4), x8)≥IF(le(x8, x3), x3, s(x4), x8))
(3) (IF(le(x11, x9), x9, s(x10), x11)=IF(true, x12, s(x13), x14) ⇒ IF(true, x12, s(x13), x14)≥HELP(x12, s(x13), s(plus(x14, x13))))
(4) (le(x11, x9)=true ⇒ IF(true, x9, s(x10), x11)≥HELP(x9, s(x10), s(plus(x11, x10))))
(5) (true=true ⇒ IF(true, x18, s(x10), 0)≥HELP(x18, s(x10), s(plus(0, x10))))
(6) (le(x20, x21)=true∧(∀x22:le(x20, x21)=true ⇒ IF(true, x21, s(x22), x20)≥HELP(x21, s(x22), s(plus(x20, x22)))) ⇒ IF(true, s(x21), s(x10), s(x20))≥HELP(s(x21), s(x10), s(plus(s(x20), x10))))
(7) (IF(true, x18, s(x10), 0)≥HELP(x18, s(x10), s(plus(0, x10))))
(8) (IF(true, x21, s(x10), x20)≥HELP(x21, s(x10), s(plus(x20, x10))) ⇒ IF(true, s(x21), s(x10), s(x20))≥HELP(s(x21), s(x10), s(plus(s(x20), x10))))
POL(0) = 0
POL(HELP(x1, x2, x3)) = -1 + x1 - x3
POL(IF(x1, x2, x3, x4)) = -1 - x1 + x2 - x4
POL(c) = -1
POL(false) = 1
POL(le(x1, x2)) = 0
POL(plus(x1, x2)) = x1
POL(s(x1)) = 1 + x1
POL(true) = 0
The following pairs are in Pbound:
IF(true, x, s(y), c) → HELP(x, s(y), s(plus(c, y)))
The following rules are usable:
IF(true, x, s(y), c) → HELP(x, s(y), s(plus(c, y)))
s(plus(x, y)) → plus(x, s(y))
le(x, y) → le(s(x), s(y))
false → le(s(x), 0)
true → le(0, y)
x → plus(x, 0)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Rewriting
↳ QDP
↳ NonInfProof
↳ QDP
↳ DependencyGraphProof
HELP(x, s(y), c) → IF(le(c, x), x, s(y), c)
plus(x, s(y)) → s(plus(x, y))
plus(x, 0) → x
le(0, y) → true
le(s(x), 0) → false
le(s(x), s(y)) → le(x, y)
le(0, x0)
le(s(x0), 0)
le(s(x0), s(x1))
plus(x0, 0)
plus(x0, s(x1))